const permit = () => import('@/views/permission/index.vue');
const menu = () => import('@/views/permission/menu/index.vue');
const role = () => import('@/views/permission/role/index.vue');
const user = () => import('@/views/permission/user/index.vue');
const organ = () => import('@/views/permission/organ/index.vue');
const account = () => import('@/views/permission/account/index.vue');

export const permitRouter = [
    {
        path: '/perms',
        name: 'permit',
        component: permit,
        redirect: '/perms/menu',
        children: [
            {
                path: '/perms/menu',
                name: 'menu',
                component: menu,
                meta: {
                    menuOpen: '/perms',
                    menuSel: '/perms/menu'
                },
            },
            {
                path: '/perms/role',
                name: 'role',
                component: role,
                meta: {
                    menuOpen: '/perms',
                    menuSel: '/perms/role'
                },
            },
            {
                path: '/perms/user',
                name: 'user',
                component: user,
                meta: {
                    menuOpen: '/perms',
                    menuSel: '/perms/user'
                },
            },
            {
                path: '/perms/organ',
                name: 'organ',
                component: organ,
                meta: {
                    menuOpen: '/perms',
                    menuSel: '/perms/organ'
                },
            },
            {
                path: '/perms/account',
                name: 'account',
                component: account,
                meta: {
                    menuOpen: '/perms',
                    menuSel: '/perms/account'
                },
            },
        ]
    }
];
export default permitRouter;
